﻿using System.IO;

namespace Azure.Online.Web.Utils {
    public class StreamUtils {

        public static void CopyStream(Stream source, Stream target) {
            var buffer = new byte[4096];
            while (true) {
                var read = source.Read(buffer, 0, buffer.Length);
                if (read == 0) break;
                target.Write(buffer, 0, read);
            };
        }

    }
}